﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DreamLand.Services.Models;

namespace DreamLand.Services
{
    class DreamLandService: IDreamLandService
    {
        ServiceRepository repository;

        public DreamLandService()
        {
            repository = new ServiceRepository();
        }

        public List<Category> GetCategories()
        {
            return repository.GetCategories();
        }

        public List<Category> GetCategories(int parentID)
        {
            return repository.GetCategories(parentID);
        }


        public List<Document> GetDocuments(int catID)
        {
            return repository.GetDocuments(catID);
        }
    }
}
